package com.neu.api.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

@Data  //等价于@Getter` 、 `@Setter` 、 `@ToString` 、 `@EqualsAndHashCode`
public class CategoryVO {
    private Long id;

    private String name;
    private Byte sort;
    private Byte status;

//    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
//    private Date createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

}
